package net.tycmc.cty.ctyms.timejob.function.monitore;

import net.tycmc.bulb.common.util.StringUtil;

import org.apache.commons.configuration.ConfigurationException;

import com.tycmc.functions.util.DynamicReadConfig;

public class ControlHandler {

	/**
	 * 是否使用监控   true监控
	 * config.properties 中配置
	 **/
	public static boolean isControl() {
		boolean controlFlag = false;
		try {
			String isControl = DynamicReadConfig.getConfigProperty("config.properties", "isControl");
			if(StringUtil.isValid(isControl)&&isControl.equals("true")){
				controlFlag = true;
			}
		} catch (ConfigurationException e) {
		}
		return controlFlag;
	}

}
